<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link href="${pageContext.request.contextPath}/css/layout.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/css/add.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.x.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/cascadingMenu.js"></script>
    <script type="text/javascript">
    </script>
</head>
<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li><a href="${pageContext.request.contextPath}/backend/product/index" target="center">商品列表</a></li>
        <li><a href="#">商品详情</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="usual">
        <div class="tabson">
            <table border="1" bordercolor="PaleGreen">

                <tr>
                    <td>id</td>
                    <td>${product.id}</td>
                </tr>
                <tr>
                    <td>主图</td>
                    <td>
                        <img src="<%=basePath%>${product.imgMain}" width="180px">
                    </td>
                </tr>
                <tr>
                    <td>产品名</td>
                    <td>${product.name}</td>
                </tr>
                <tr>
                    <td>类型</td>
                    <td>${product.typeName}</td>
                </tr>
                <tr>
                    <td>原价</td>
                    <td>${product.price}</td>
                </tr>
                <tr>
                    <td>售价</td>
                    <td>${product.finalPrice}</td>
                </tr>
                <tr>
                    <td>库存</td>
                    <td>${product.qty}</td>
                </tr>
                <tr>
                    <td>详情</td>
                    <td>${product.content}</td>
                </tr>
                <tr>
                    <td>添加时间</td>
                    <td>${product.createdTime}</td>
                </tr>
                <tr>
                    <td>修改时间</td>
                    <td>${product.updatedTime}</td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>